<?php global $db ?>
<table width="100%" border="1">
  <tr><th>Page</th><th>Author</th><th>IP</th><th>Time</th></tr>
  <?php foreach($db->select('revisions','',array('order by'=>'time DESC')) as $revision): ?>
    <tr>
      <td><?php echo getNameFromId($revision['pageid']) ?></td>
      <td><?php echo $revision['author'] ?></td>
      <td><?php echo $revision['ip'] ?></td>
      <td><?php echo superTimeDiff($revision['time']) ?></td>
    </tr>
  <?php endforeach; ?>
</table>